package cn.edu.sgu.www.mhxysy.service.equipment.impl;

import cn.edu.sgu.www.mhxysy.entity.equipment.EquipmentTexiaoType;
import cn.edu.sgu.www.mhxysy.mapper.equipment.EquipmentTexiaoTypeMapper;
import cn.edu.sgu.www.mhxysy.service.equipment.EquipmentTexiaoTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class EquipmentTexiaoTypeServiceImpl implements EquipmentTexiaoTypeService {

    private final EquipmentTexiaoTypeMapper equipmentTexiaoTypeMapper;

    @Autowired
    public EquipmentTexiaoTypeServiceImpl(EquipmentTexiaoTypeMapper equipmentTexiaoTypeMapper) {
        this.equipmentTexiaoTypeMapper = equipmentTexiaoTypeMapper;
    }

    @Override
    public List<EquipmentTexiaoType> selectAll() {
        return equipmentTexiaoTypeMapper.selectList(null);
    }

    @Override
    public EquipmentTexiaoType selectById(Integer id) {
        return equipmentTexiaoTypeMapper.selectById(id);
    }

}